package com.haosuwei.mybatis_test.service.impl;

import com.haosuwei.mybatis_test.dao.LibrarianMapper;
import com.haosuwei.mybatis_test.entity.Librarian;
import com.haosuwei.mybatis_test.service.LibrarianService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LibrarianServiceImpl implements LibrarianService {

    @Autowired
    LibrarianMapper librarianMapper;

    @Override
    public Librarian selectLibrarian(int id) {
        return librarianMapper.selectLibrarian(id);
    }
}
